#ifndef		__DEBUG_H
#define 	__DEBUG_H

#include "Arduino.h"



#define _DEBUG	1

#if (_DEBUG == 1)
	//数字越小 优先级越大，0-9
	#define DEBUG_PRIO  4	
	#define DEBUG_PORT	USART1
	#define DEBUG_LOG_ON		1			
	#define DEBUG_ERROR_ON		1
	#define DEBUG_WARRING_ON	1
	#define DEBUG_EVENT_ON		1
	#define printf	Serial.println
#else
	#define DEBUG_PRIO  0	
	#define DEBUG_PORT	USART1
	//#define LVGL_DEBUG_PRIO 	3
	#define DEBUG_LOG_ON		0			
	#define DEBUG_ERROR_ON		0
	#define DEBUG_WARRING_ON	0

#endif

void DEBUG(uint8_t prio,char* fmt,...);
void DEBUG_LOG(char* fmt,...);
void DEBUG_ERROR(char* fmt,...);
void DEBUG_WARRING(char* fmt,...);
void DEBUG_EVENT(char* fmt,...);



#endif


